<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IgH EtherCAT Master: sdo_request.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">IgH EtherCAT Master
   &#160;<span id="projectnumber">1.5.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('sdo__request_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">sdo_request.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Canopen over EtherCAT SDO request functions.  
<a href="#details">More...</a></p>

<p><a href="sdo__request_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a90de0444ea60b7bb1d18233f1152b249"><td class="memItemLeft" align="right" valign="top"><a id="a90de0444ea60b7bb1d18233f1152b249"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo__request_8c.html#a90de0444ea60b7bb1d18233f1152b249">EC_SDO_REQUEST_RESPONSE_TIMEOUT</a>&#160;&#160;&#160;1000</td></tr>
<tr class="memdesc:a90de0444ea60b7bb1d18233f1152b249"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default timeout in ms to wait for SDO transfer responses. <br /></td></tr>
<tr class="separator:a90de0444ea60b7bb1d18233f1152b249"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:af17eb98fdb8755c76a4500ed5be4233c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo__request_8c.html#af17eb98fdb8755c76a4500ed5be4233c">ec_sdo_request_clear_data</a> (<a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *req)</td></tr>
<tr class="memdesc:af17eb98fdb8755c76a4500ed5be4233c"><td class="mdescLeft">&#160;</td><td class="mdescRight">SDO request destructor.  <a href="#af17eb98fdb8755c76a4500ed5be4233c">More...</a><br /></td></tr>
<tr class="separator:af17eb98fdb8755c76a4500ed5be4233c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e62e96b9d01ab1b89cc2df89d0ac8ef"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo__request_8c.html#a0e62e96b9d01ab1b89cc2df89d0ac8ef">ec_sdo_request_init</a> (<a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *req)</td></tr>
<tr class="memdesc:a0e62e96b9d01ab1b89cc2df89d0ac8ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">SDO request constructor.  <a href="#a0e62e96b9d01ab1b89cc2df89d0ac8ef">More...</a><br /></td></tr>
<tr class="separator:a0e62e96b9d01ab1b89cc2df89d0ac8ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3a555948ca6b916238e6c696d676645"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo__request_8c.html#af3a555948ca6b916238e6c696d676645">ec_sdo_request_clear</a> (<a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *req)</td></tr>
<tr class="memdesc:af3a555948ca6b916238e6c696d676645"><td class="mdescLeft">&#160;</td><td class="mdescRight">SDO request destructor.  <a href="#af3a555948ca6b916238e6c696d676645">More...</a><br /></td></tr>
<tr class="separator:af3a555948ca6b916238e6c696d676645"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70e89eac4d08148fb507ec32756738b8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo__request_8c.html#a70e89eac4d08148fb507ec32756738b8">ec_sdo_request_copy</a> (<a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *req, const <a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *other)</td></tr>
<tr class="memdesc:a70e89eac4d08148fb507ec32756738b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy another SDO request.  <a href="#a70e89eac4d08148fb507ec32756738b8">More...</a><br /></td></tr>
<tr class="separator:a70e89eac4d08148fb507ec32756738b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f1e920bf54c7826a9747beae685caf4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo__request_8c.html#a2f1e920bf54c7826a9747beae685caf4">ec_sdo_request_alloc</a> (<a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *req, size_t size)</td></tr>
<tr class="memdesc:a2f1e920bf54c7826a9747beae685caf4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pre-allocates the data memory.  <a href="#a2f1e920bf54c7826a9747beae685caf4">More...</a><br /></td></tr>
<tr class="separator:a2f1e920bf54c7826a9747beae685caf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af41428fb76fbb3a2bcf14a269a265476"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo__request_8c.html#af41428fb76fbb3a2bcf14a269a265476">ec_sdo_request_copy_data</a> (<a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *req, const uint8_t *source, size_t size)</td></tr>
<tr class="memdesc:af41428fb76fbb3a2bcf14a269a265476"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies SDO data from an external source.  <a href="#af41428fb76fbb3a2bcf14a269a265476">More...</a><br /></td></tr>
<tr class="separator:af41428fb76fbb3a2bcf14a269a265476"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cf7dda2b74244c093448636f7584d60"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sdo__request_8c.html#a4cf7dda2b74244c093448636f7584d60">ec_sdo_request_timed_out</a> (const <a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *req)</td></tr>
<tr class="memdesc:a4cf7dda2b74244c093448636f7584d60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks, if the timeout was exceeded.  <a href="#a4cf7dda2b74244c093448636f7584d60">More...</a><br /></td></tr>
<tr class="separator:a4cf7dda2b74244c093448636f7584d60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae002eb267f69d91de0c83a5f4f349372"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ApplicationInterface.html#gae002eb267f69d91de0c83a5f4f349372">ecrt_sdo_request_index</a> (<a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *req, uint16_t index, uint8_t subindex)</td></tr>
<tr class="memdesc:gae002eb267f69d91de0c83a5f4f349372"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the SDO index and subindex.  <a href="group__ApplicationInterface.html#gae002eb267f69d91de0c83a5f4f349372">More...</a><br /></td></tr>
<tr class="separator:gae002eb267f69d91de0c83a5f4f349372"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae5018a122570d50568b32211d79f00ff"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ApplicationInterface.html#gae5018a122570d50568b32211d79f00ff">ecrt_sdo_request_timeout</a> (<a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *req, uint32_t timeout)</td></tr>
<tr class="memdesc:gae5018a122570d50568b32211d79f00ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the timeout for an SDO request.  <a href="group__ApplicationInterface.html#gae5018a122570d50568b32211d79f00ff">More...</a><br /></td></tr>
<tr class="separator:gae5018a122570d50568b32211d79f00ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga70b875084a32b81579bf83c960390967"><td class="memItemLeft" align="right" valign="top">uint8_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ApplicationInterface.html#ga70b875084a32b81579bf83c960390967">ecrt_sdo_request_data</a> (<a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *req)</td></tr>
<tr class="memdesc:ga70b875084a32b81579bf83c960390967"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access to the SDO request's data.  <a href="group__ApplicationInterface.html#ga70b875084a32b81579bf83c960390967">More...</a><br /></td></tr>
<tr class="separator:ga70b875084a32b81579bf83c960390967"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8de1a948ed0cfa5a9478d2050c2560da"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ApplicationInterface.html#ga8de1a948ed0cfa5a9478d2050c2560da">ecrt_sdo_request_data_size</a> (const <a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *req)</td></tr>
<tr class="memdesc:ga8de1a948ed0cfa5a9478d2050c2560da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current SDO data size.  <a href="group__ApplicationInterface.html#ga8de1a948ed0cfa5a9478d2050c2560da">More...</a><br /></td></tr>
<tr class="separator:ga8de1a948ed0cfa5a9478d2050c2560da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga78d910487f583e333cdf978b4f12c3c1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__ApplicationInterface.html#gae94149f829f04960c62d63764a7779df">ec_request_state_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ApplicationInterface.html#ga78d910487f583e333cdf978b4f12c3c1">ecrt_sdo_request_state</a> (const <a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *req)</td></tr>
<tr class="memdesc:ga78d910487f583e333cdf978b4f12c3c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current state of the SDO request.  <a href="group__ApplicationInterface.html#ga78d910487f583e333cdf978b4f12c3c1">More...</a><br /></td></tr>
<tr class="separator:ga78d910487f583e333cdf978b4f12c3c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga883e43ca2b29e73ac5ec5dec214487b2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ApplicationInterface.html#ga883e43ca2b29e73ac5ec5dec214487b2">ecrt_sdo_request_read</a> (<a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *req)</td></tr>
<tr class="memdesc:ga883e43ca2b29e73ac5ec5dec214487b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Schedule an SDO read operation.  <a href="group__ApplicationInterface.html#ga883e43ca2b29e73ac5ec5dec214487b2">More...</a><br /></td></tr>
<tr class="separator:ga883e43ca2b29e73ac5ec5dec214487b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf0e5a35aa54d971d75a6d00c148ffa83"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ApplicationInterface.html#gaf0e5a35aa54d971d75a6d00c148ffa83">ecrt_sdo_request_write</a> (<a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *req)</td></tr>
<tr class="memdesc:gaf0e5a35aa54d971d75a6d00c148ffa83"><td class="mdescLeft">&#160;</td><td class="mdescRight">Schedule an SDO write operation.  <a href="group__ApplicationInterface.html#gaf0e5a35aa54d971d75a6d00c148ffa83">More...</a><br /></td></tr>
<tr class="separator:gaf0e5a35aa54d971d75a6d00c148ffa83"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Canopen over EtherCAT SDO request functions. </p>

<p class="definition">Definition in file <a class="el" href="sdo__request_8c_source.html">sdo_request.c</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="af17eb98fdb8755c76a4500ed5be4233c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af17eb98fdb8755c76a4500ed5be4233c">&#9670;&nbsp;</a></span>ec_sdo_request_clear_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_sdo_request_clear_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SDO request destructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SDO request. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="sdo__request_8c_source.html#l00106">106</a> of file <a class="el" href="sdo__request_8c_source.html">sdo_request.c</a>.</p>

</div>
</div>
<a id="a0e62e96b9d01ab1b89cc2df89d0ac8ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e62e96b9d01ab1b89cc2df89d0ac8ef">&#9670;&nbsp;</a></span>ec_sdo_request_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_sdo_request_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SDO request constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SDO request. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="sdo__request_8c_source.html#l00056">56</a> of file <a class="el" href="sdo__request_8c_source.html">sdo_request.c</a>.</p>

</div>
</div>
<a id="af3a555948ca6b916238e6c696d676645"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3a555948ca6b916238e6c696d676645">&#9670;&nbsp;</a></span>ec_sdo_request_clear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_sdo_request_clear </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SDO request destructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SDO request. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="sdo__request_8c_source.html#l00076">76</a> of file <a class="el" href="sdo__request_8c_source.html">sdo_request.c</a>.</p>

</div>
</div>
<a id="a70e89eac4d08148fb507ec32756738b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70e89eac4d08148fb507ec32756738b8">&#9670;&nbsp;</a></span>ec_sdo_request_copy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_sdo_request_copy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *&#160;</td>
          <td class="paramname"><em>other</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copy another SDO request. </p>
<dl class="section attention"><dt>Attention</dt><dd>Only the index subindex and data are copied.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>Zero on success, otherwise a negative error code. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SDO request. </td></tr>
    <tr><td class="paramname">other</td><td>Other SDO request to copy from. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="sdo__request_8c_source.html#l00091">91</a> of file <a class="el" href="sdo__request_8c_source.html">sdo_request.c</a>.</p>

</div>
</div>
<a id="a2f1e920bf54c7826a9747beae685caf4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f1e920bf54c7826a9747beae685caf4">&#9670;&nbsp;</a></span>ec_sdo_request_alloc()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_sdo_request_alloc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Pre-allocates the data memory. </p>
<p>If the <em>mem_size</em> is already bigger than <em>size</em>, nothing is done.</p>
<dl class="section return"><dt>Returns</dt><dd>0 on success, otherwise -ENOMEM. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SDO request. </td></tr>
    <tr><td class="paramname">size</td><td>Data size to allocate. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="sdo__request_8c_source.html#l00127">127</a> of file <a class="el" href="sdo__request_8c_source.html">sdo_request.c</a>.</p>

</div>
</div>
<a id="af41428fb76fbb3a2bcf14a269a265476"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af41428fb76fbb3a2bcf14a269a265476">&#9670;&nbsp;</a></span>ec_sdo_request_copy_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_sdo_request_copy_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copies SDO data from an external source. </p>
<p>If the <em>mem_size</em> is to small, new memory is allocated.</p>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>Success. </td></tr>
    <tr><td class="paramname">&lt;0</td><td>Error code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SDO request. </td></tr>
    <tr><td class="paramname">source</td><td>Source data. </td></tr>
    <tr><td class="paramname">size</td><td>Number of bytes in <em>source</em>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="sdo__request_8c_source.html#l00156">156</a> of file <a class="el" href="sdo__request_8c_source.html">sdo_request.c</a>.</p>

</div>
</div>
<a id="a4cf7dda2b74244c093448636f7584d60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4cf7dda2b74244c093448636f7584d60">&#9670;&nbsp;</a></span>ec_sdo_request_timed_out()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_sdo_request_timed_out </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="group__ApplicationInterface.html#ga557aaf4c32cb56eee5e76fb6063628db">ec_sdo_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks, if the timeout was exceeded. </p>
<dl class="section return"><dt>Returns</dt><dd>non-zero if the timeout was exceeded, else zero. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>SDO request. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="sdo__request_8c_source.html#l00177">177</a> of file <a class="el" href="sdo__request_8c_source.html">sdo_request.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_c1346cf4828efdd0d2baf0d391d01b77.html">master</a></li><li class="navelem"><a class="el" href="sdo__request_8c.html">sdo_request.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
